package com.chinaunicom.create.prototype.deepcopy;

import java.io.Serializable;

/**
 * @author liry
 * @version 1.0
 * @date Created on 2022/7/19 10:12
 * Description: 重写 clone() 方法实现深度拷贝
 */
public class DDept implements Cloneable, Serializable {
    private String deptName;
    private String deptAdd;
    private String type;
    
    
    @Override
    public Object clone() throws CloneNotSupportedException {
        return super.clone();
    }


    public String getDeptName() {
        return deptName;
    }

    public void setDeptName(String deptName) {
        this.deptName = deptName;
    }

    public String getDeptAdd() {
        return deptAdd;
    }

    public void setDeptAdd(String deptAdd) {
        this.deptAdd = deptAdd;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    @Override
    public String toString() {
        return "DDept{" +
                "deptName='" + deptName + '\'' +
                ", deptAdd='" + deptAdd + '\'' +
                ", type='" + type + '\'' +
                '}';
    }
}
